package com.freightoa.sgl_login.net

import androidx.core.app.ActivityCompat
import com.freightoa.foundation.net.ApiResultAdapterFactory
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object LoginNetworkModule {

    @Provides
    @Singleton
    fun provideLoginServer(retrofit: Retrofit): LoginServer {
        return retrofit.create(LoginServer::class.java)
    }


}